<template>
  <div class="tabhead">
    <flexbox class="tab  vux-1px-b">
      <flexbox-item @click.native="$refs.subscribe.open()">
        订阅&nbsp;<img :src="down" width="10px" alt="">
      </flexbox-item>
      <flexbox-item>
         关注
      </flexbox-item>
      <flexbox-item>
         最新/最热&nbsp;<img :src="updown" width="10px" alt="">
      </flexbox-item>
      <flexbox-item>
        <img :src="search" width="15px" alt="">
      </flexbox-item>
    </flexbox>
    <subscribe ref='subscribe'></subscribe>
  </div>
</template>
<script>
import { Flexbox, FlexboxItem } from 'vux'
import subscribe from '../subscribe'
export default {
  name: 'tabhead',
  components: {
    Flexbox,
    FlexboxItem,
    subscribe
  },
  data() {
    return {
      updown: require('@/assets/image/updown.png'),
      search: require('@/assets/image/search.png'),
      down: require('@/assets/image/down.png')
    }
  }
}
</script>
<style lang='less'>
.tabhead {
  font-size: 16px;
  // padding: 10px 0;
  // border-bottom: 1px solid #ccc;
  background: #fff;
  .tab{
    position: fixed;
    width: 100%;
    top: 0;
    height: 45px;
    background: #fff;
    z-index: 100;
  }
  .vux-flexbox-item {
    text-align: center;
  }
}
</style>
